import { createGet, createGetFordownload } from "@/utils/request";
import type { ModuleItem } from "./index.d";

/**
 * @description: 获取系统名称
 */
export const getSystemName = createGet<never, string>("/api/GlobalConfig/GetSystemName");

/**
 * @description: 获取系统模块列表
 */
export const getSystyemModules = createGet<never, ModuleItem[]>("/api/GlobalConfig/GetSystyemModules");

/**
 * @description: 获取系统版本信息
 */
export const getSystyemVersionInfo = createGet<never, { name: string; version: string }[]>("/api/GlobalConfig/GetSystyemVersionInfo");

/**
 * @description: 获取说明文档文件流
 */
export const getPreviewPDF = createGetFordownload<never, Blob>("/api/GlobalConfig/GetPreviewPDF");